<template>
    <fieldset>
        <legend>Brother</legend>
        <button @click="send">点击</button>
        <h1>{{msg}}</h1>
    </fieldset>
</template>
<script>
    export default {
        data () {
            return {
                gift:"东风快递🚀",
                msg:"一个brother组件"
            }
        },
        methods: {
            send(){
                this.bus.$emit('receive',this.gift)
            }
        }
    }
</script>